home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12581 < prev    next >
Encoding:
Text File  |  1996-08-05  |  871 b   |  25 lines

  1. Newsgroups: comp.lang.c,comp.lang.c++
  2. Path: cnn.nas.nasa.gov!eos!jim-ra
  3. From: jim-ra@eos.arc.nasa.gov (Jim Stevenson's reader)
  4. Subject: Re: Why is C faster than FORTRAN?
  5. Message-ID: <1996Mar20.000516.21472@eos.arc.nasa.gov>
  6. Organization: NASA Ames Research Center
  7. References: <4hv2ho$d8t@news.interpath.net> <4i2c5e$t70@kiwi.futuris.net> <4i4poj$j7e@thorn.cc.usm.edu> <danpop.826738267@rscernix>
  8. Distribution: usa
  9. Date: Wed, 20 Mar 1996 00:05:16 GMT
  10.  
  11. danpop@mail.cern.ch (Dan Pop) writes:
  12.  
  13.  
  14. >>Is C normally faster than FORTRAN?
  15.  
  16. >No.  Fortran is normally faster than C.  Fortran forbids data aliasing
  17. >(behind compiler's back) and this allows more aggressive optimization,
  18. >especially on code involving arrays.
  19.  
  20.     So your saying that data aliasing is THE  reason that FORTRAN's
  21. faster than C, huh?  I figured the MATURITY  of Fortran compilers would
  22. play a bigger role.
  23.  
  24.  
  25.